<?php
/**
 * Created by PhpStorm.
 * User: asdf
 * Date: 2021/9/24
 * Time: 1:45
 */

namespace core\lib;

//设计模式2
class Loger
{
    static $class;
    static $lastfix = ".php";
    static public function init(){
        $driver = Config::get("log",'LOG');
        $class = '\Extentions\Loger\\'.$driver;
        self::$class = new $class;
    }

    public static function log($data){
        self::$class ->log($data);
    }
}